package com.ruoyi.easyfame.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 需求管理记录对象 tb_demand_managements
 * 
 * @author xhb
 * @date 2025-08-27
 */
public class DemandManagements extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 需求ID */
    @Excel(name = "需求ID")
    private Long demandId;

    /** 操作类型 */
    @Excel(name = "操作类型")
    private String action;

    /** 修改前数据 */
    @Excel(name = "修改前数据")
    private String oldData;

    /** 修改后数据 */
    @Excel(name = "修改后数据")
    private String newData;

    /** 买家 */
    @Excel(name = "买家")
    private Long operatorId;

    /** $column.columnComment */
    private Date operatedAt;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setDemandId(Long demandId) 
    {
        this.demandId = demandId;
    }

    public Long getDemandId() 
    {
        return demandId;
    }

    public void setAction(String action) 
    {
        this.action = action;
    }

    public String getAction() 
    {
        return action;
    }

    public void setOldData(String oldData) 
    {
        this.oldData = oldData;
    }

    public String getOldData() 
    {
        return oldData;
    }

    public void setNewData(String newData) 
    {
        this.newData = newData;
    }

    public String getNewData() 
    {
        return newData;
    }

    public void setOperatorId(Long operatorId) 
    {
        this.operatorId = operatorId;
    }

    public Long getOperatorId() 
    {
        return operatorId;
    }

    public void setOperatedAt(Date operatedAt) 
    {
        this.operatedAt = operatedAt;
    }

    public Date getOperatedAt() 
    {
        return operatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("demandId", getDemandId())
            .append("action", getAction())
            .append("oldData", getOldData())
            .append("newData", getNewData())
            .append("operatorId", getOperatorId())
            .append("operatedAt", getOperatedAt())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
